package com.hm.ibsm.repositry;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.hm.ibsm.domain.mg.RoleDomain;
import com.hm.ibsm.util.IbsmRepository;

/**
 * @author shishun.wang
 * @date 2017年2月10日 上午1:45:31
 * @version 1.0
 * @describe
 */
@Repository
public interface IRoleRepository extends IbsmRepository<RoleDomain, String> {

	@Query("select r from RoleDomain r where r.roleName = :roleName")
	public RoleDomain getRoleByRoleName(@Param("roleName") String roleName);

}
